﻿using Decision.BusinessLayer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for DCSFactory
/// </summary>
public class DCSFactory
{
    private static DCSFactory _instance = null;

    private static DCS_MASTERFactory _DCS_MASTERFactory = null;
    private static ECT_USERFactory _ECT_USERFactory = null;
    private static QueryMasTerDataFactory _QueryMasTerDataFactory = null;
    private static QueryMasTer_DECISIONFactory _QueryMasTer_DECISIONFactory = null;
    private static DCS_DECISION_TYPEFactory _DCS_DECISION_TYPEFactory = null;
    private static DCS_STEP_01Factory _DCS_STEP_01Factory = null;
    private static DCS_STEP_02Factory _DCS_STEP_02Factory = null;
    private static DCS_STEP_03Factory _DCS_STEP_03Factory = null;
    private static DCS_STEP_04Factory _DCS_STEP_04Factory = null;
    private static DCS_STEP_05Factory _DCS_STEP_05Factory = null;
    private static DCS_STEP_06Factory _DCS_STEP_06Factory = null;
    private static DCS_STEP_07Factory _DCS_STEP_07Factory = null;
    private static DCS_STEP_08Factory _DCS_STEP_08Factory = null;
    private static DCS_STEP_09Factory _DCS_STEP_09Factory = null;
    private static DCS_STEP_10Factory _DCS_STEP_10Factory = null;
    private static DCS_STEP_11Factory _DCS_STEP_11Factory = null;
    private static DCS_STEP_12Factory _DCS_STEP_12Factory = null;
    private static DCS_STEP_13Factory _DCS_STEP_13Factory = null;
    private static DCS_STEP_14Factory _DCS_STEP_14Factory = null;
    private static DCS_STEP_15Factory _DCS_STEP_15Factory = null;
    private static DCS_STEPFactory _DCS_STEPFactory = null;
    private static ReportDecisionFactory _ReportDecisionFactory = null;
    private static DCS_MASTER_MEMBERFactory _DCS_MASTER_MEMBERFactory = null;
    private static ReportDecision3Factory _ReportDecision3Factory = null;
    private static ReportDecision3_2Factory _ReportDecision3_2Factory = null;
    private static ReportDecision1_2Factory _ReportDecision1_2Factory = null;
    private static DCS_AMPHURFactory _DCS_AMPHURFactory = null;
    private static DCS_DISTRICTFactory _DCS_DISTRICTFactory = null;
    private static ReportDecision4_1Factory _ReportDecision4_1Factory = null;

	private DCSFactory()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public static DCS_MASTERFactory CreateDCSMasterFactory()
    {
        if (_DCS_MASTERFactory == null) 
        {
            _DCS_MASTERFactory = new DCS_MASTERFactory();
        }

        return _DCS_MASTERFactory;
    }

    public static ECT_USERFactory CreateECTUserFactory() 
    {
        if (_ECT_USERFactory == null)
        {
            _ECT_USERFactory = new ECT_USERFactory();
        }

        return _ECT_USERFactory;
    }

    public static QueryMasTerDataFactory CreateQueryMasTerDataFactory()
    {
        if (_QueryMasTerDataFactory == null)
        {
            _QueryMasTerDataFactory = new QueryMasTerDataFactory();
        }

        return _QueryMasTerDataFactory;
    }

    public static QueryMasTer_DECISIONFactory CreateQueryMasTer_DECISIONFactory() 
    {
        if (_QueryMasTer_DECISIONFactory == null)
        {
            _QueryMasTer_DECISIONFactory = new QueryMasTer_DECISIONFactory();
        }

        return _QueryMasTer_DECISIONFactory;
    }

    public static DCS_DECISION_TYPEFactory CreateDCS_DECISION_TYPEFactory() 
    {
        if (_DCS_DECISION_TYPEFactory == null) 
        {
            _DCS_DECISION_TYPEFactory = new DCS_DECISION_TYPEFactory();
        }

        return _DCS_DECISION_TYPEFactory;
    }

    public static DCS_STEP_01Factory CreateDCS_STEP_01Factory() 
    {
        if (_DCS_STEP_01Factory == null)
        {
            _DCS_STEP_01Factory = new DCS_STEP_01Factory();
        }

        return _DCS_STEP_01Factory;
    }

    public static DCS_STEP_02Factory CreateDCS_STEP_02Factory()
    {
        if (_DCS_STEP_02Factory == null)
        {
            _DCS_STEP_02Factory = new DCS_STEP_02Factory();
        }

        return _DCS_STEP_02Factory;
    }

    public static DCS_STEP_03Factory CreateDCS_STEP_03Factory()
    {
        if (_DCS_STEP_03Factory == null)
        {
            _DCS_STEP_03Factory = new DCS_STEP_03Factory();
        }

        return _DCS_STEP_03Factory;
    }

    public static DCS_STEP_04Factory CreateDCS_STEP_04Factory()
    {
        if (_DCS_STEP_04Factory == null)
        {
            _DCS_STEP_04Factory = new DCS_STEP_04Factory();
        }

        return _DCS_STEP_04Factory;
    }

    public static DCS_STEP_05Factory CreateDCS_STEP_05Factory()
    {
        if (_DCS_STEP_05Factory == null)
        {
            _DCS_STEP_05Factory = new DCS_STEP_05Factory();
        }

        return _DCS_STEP_05Factory;
    }

    public static DCS_STEP_06Factory CreateDCS_STEP_06Factory()
    {
        if (_DCS_STEP_06Factory == null)
        {
            _DCS_STEP_06Factory = new DCS_STEP_06Factory();
        }

        return _DCS_STEP_06Factory;
    }

    public static DCS_STEP_07Factory CreateDCS_STEP_07Factory()
    {
        if (_DCS_STEP_07Factory == null)
        {
            _DCS_STEP_07Factory = new DCS_STEP_07Factory();
        }

        return _DCS_STEP_07Factory;
    }

    public static DCS_STEP_08Factory CreateDCS_STEP_08Factory()
    {
        if (_DCS_STEP_08Factory == null)
        {
            _DCS_STEP_08Factory = new DCS_STEP_08Factory();
        }

        return _DCS_STEP_08Factory;
    }

    public static DCS_STEP_09Factory CreateDCS_STEP_09Factory()
    {
        if (_DCS_STEP_09Factory == null)
        {
            _DCS_STEP_09Factory = new DCS_STEP_09Factory();
        }

        return _DCS_STEP_09Factory;
    }

    public static DCS_STEP_10Factory CreateDCS_STEP_10Factory()
    {
        if (_DCS_STEP_10Factory == null)
        {
            _DCS_STEP_10Factory = new DCS_STEP_10Factory();
        }

        return _DCS_STEP_10Factory;
    }

    public static DCS_STEP_11Factory CreateDCS_STEP_11Factory()
    {
        if (_DCS_STEP_11Factory == null)
        {
            _DCS_STEP_11Factory = new DCS_STEP_11Factory();
        }

        return _DCS_STEP_11Factory;
    }

    public static DCS_STEP_12Factory CreateDCS_STEP_12Factory()
    {
        if (_DCS_STEP_12Factory == null)
        {
            _DCS_STEP_12Factory = new DCS_STEP_12Factory();
        }

        return _DCS_STEP_12Factory;
    }

    public static DCS_STEP_13Factory CreateDCS_STEP_13Factory()
    {
        if (_DCS_STEP_13Factory == null)
        {
            _DCS_STEP_13Factory = new DCS_STEP_13Factory();
        }

        return _DCS_STEP_13Factory;
    }

    public static DCS_STEP_14Factory CreateDCS_STEP_14Factory()
    {
        if (_DCS_STEP_14Factory == null)
        {
            _DCS_STEP_14Factory = new DCS_STEP_14Factory();
        }

        return _DCS_STEP_14Factory;
    }

    public static DCS_STEP_15Factory CreateDCS_STEP_15Factory()
    {
        if (_DCS_STEP_15Factory == null)
        {
            _DCS_STEP_15Factory = new DCS_STEP_15Factory();
        }

        return _DCS_STEP_15Factory;
    }

    public static DCS_STEPFactory CreateDCS_STEPFactory()
    {
        if (_DCS_STEPFactory == null)
        {
            _DCS_STEPFactory = new DCS_STEPFactory();
        }

        return _DCS_STEPFactory;
    }

    public static ReportDecisionFactory CreateReportDecisionFactory()
    {
        if (_ReportDecisionFactory == null)
        {
            _ReportDecisionFactory = new ReportDecisionFactory();
        }

        return _ReportDecisionFactory;
    }

    public static DCS_MASTER_MEMBERFactory CreateDCS_MASTER_MEMBERFactory()
    {
        if (_DCS_MASTER_MEMBERFactory == null)
        {
            _DCS_MASTER_MEMBERFactory = new DCS_MASTER_MEMBERFactory();
        }

        return _DCS_MASTER_MEMBERFactory;
    }

    public static ReportDecision3Factory CreateReportDecision3Factory()
    {
        if (_ReportDecision3Factory == null)
        {
            _ReportDecision3Factory = new ReportDecision3Factory();
        }

        return _ReportDecision3Factory;
    }

    public static ReportDecision3_2Factory CreateReportDecision3_2Factory()
    {
        if (_ReportDecision3_2Factory == null)
        {
            _ReportDecision3_2Factory = new ReportDecision3_2Factory();
        }

        return _ReportDecision3_2Factory;
    }

    public static ReportDecision1_2Factory CreateReportDecision1_2Factory()
    {
        if (_ReportDecision1_2Factory == null)
        {
            _ReportDecision1_2Factory = new ReportDecision1_2Factory();
        }

        return _ReportDecision1_2Factory;
    }

    public static DCS_AMPHURFactory CreateDCS_AMPHURFactory() 
    {
        if (_DCS_AMPHURFactory == null)
        {
            _DCS_AMPHURFactory = new DCS_AMPHURFactory();
        }

        return _DCS_AMPHURFactory;
    }

    public static DCS_DISTRICTFactory CreateDCS_DISTRICTFactory() 
    {
        if (_DCS_DISTRICTFactory == null) 
        {
            _DCS_DISTRICTFactory = new DCS_DISTRICTFactory();
        }

        return _DCS_DISTRICTFactory;
    }

    public static ReportDecision4_1Factory CreateReportDecision4_1Factory() 
    {
        if (_ReportDecision4_1Factory == null)
        {
            _ReportDecision4_1Factory = new ReportDecision4_1Factory();
        }

        return _ReportDecision4_1Factory;
    }
}